package com.sport.model.setting.bos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SportEventsGamesBo {

    private Long id;

    /**
     * 运动会项目名称
     */
    private String sportEventsName;

    /**
     * 项目类型，1为径赛，2为田赛，3为接力赛
     */
    private String sportEventsType;

    /**
     * 项目子类型
     */
    private String sportEventsSonType;

    /**
     * 项目完整名称
     * @param sportEventsType
     */
    private String sportName;

    public void setSportEventsType(Integer sportEventsType) {
        if (sportEventsType == 1)
            this.sportEventsType = "径赛";
        else if (sportEventsType == 2)
            this.sportEventsType = "田赛";
        else if (sportEventsType == 3)
            this.sportEventsType = "接力赛";
    }

    public void setSportEventsType(String sportEventsType) {
        this.sportEventsType = sportEventsType;
    }
}
